﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage" %>

<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        list.DataSource = ViewData.Model;
        list.DataBind();
    }
</script>

<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
    GridView with list of Climbs
</asp:Content>

<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>GridView with list of Climbs</h2>
    <p>
        <form id="Form1" runat="server">
        <asp:GridView runat="server" ID="list"
            AllowSorting="true"
            AllowPaging="true" PageSize="3">
        </asp:GridView>
        </form>
    </p>
</asp:Content>
